const { env } = require('./env');
const UPLOAD_PATH = env === 'dev' ? 'E:/nginx-1.20.1/html/upload-ebook' : '';

const UPLOAD_URL = env === 'dev' ? 'http://localhost:81/upload-ebook' : '';

module.exports = {
  CODE_ERROR: -1,
  CODE_SUCCESS: 0,
  CODE_TOKEN_EXPIRED: -2,
  debug: true,
  PWD_SALT: 'admin_imooc_node', // 加密密码的秘钥，混合生成新的密码
  PRIVATE_KEY: 'admin_imooc_node_test_youbaobao_xyz',
  JWT_EXPIRED: 60 * 60, // token失效时间
  UPLOAD_PATH
};
